package it.trio.minesweeper.domain;


public class MineField {
	MSGame game;
	public static final int ROWS = 1;
	public static final int COLS = 1;
	MineSquare squares[][];
	int mines = 1;
	int coveredSquareNumber;

	MineField(MSGame game) {
		this.game = game;
		createGrid(); 
		createMines();
	}

	void createMines() {
		squares[0][0] = new MineSquare(game, this);
	}

	void createGrid() {
		squares = new MineSquare[ROWS][COLS];
		coveredSquareNumber = ROWS * COLS;
	}

// not necessary for test	
//	MineSquare[][] getSquares() {
//		return squares;
//	}
//
//	MineSquare getSquare(int i, int j) {
//		return squares[i][j];
//	}

	int getSquareNumber() {
		return ROWS * COLS;
	}

	int getCoveredSquareNumber() {
		return coveredSquareNumber;
	}

	void decrementCovered() {
		coveredSquareNumber --;
	}

	void uncover(int i, int j) {
		squares[i][j].uncover();
	}

}
